package com.bnlr.lrparking.constant;

/**
 * URLS
 *
 * @author hp
 */
public class Urls {

    /**
     * 标注是否是测试环境
     */
    public static boolean isDebug = false;

    public static final String BASE_URL = isDebug ? "http://120.27.27.144:8001/" : "http://120.27.27.144:8100/";
    public static final String BASE_JAVA_URL = isDebug ? "http://120.27.27.144:8080/91cwTEST/" : "http://120.27.27.144:8080/91cw/";
    public static String COMMON_IP = BASE_URL + "sdk/common.ashx?";
    public static String IP = BASE_URL + "sdk/park.ashx?";
    public static String NEW_IP = BASE_URL + "sdk/userinfo.ashx?";
    public static String SPACE_IP = BASE_URL + "sdk/space.ashx?";
    public static String CAR_IP = BASE_URL + "sdk/car.ashx?";
    public static String IP_IMAGE = BASE_URL;
    public static String IP_Car = BASE_URL;
    public static String IP_UpImg = BASE_URL + "sdk/upload.ashx";
    public static String IP_SHOW = BASE_URL + "sdk/show.ashx?";
    public static String RUNNING_CITY_URL = BASE_URL + "resource/runningcity.json";
    public static String Developer = BASE_URL + "sdk/Developer.ashx";
    public static String ORDER = BASE_URL + "sdk/order.ashx";
    public static String BANK_STAGE = BASE_URL + "sdk/bankstage.ashx";
    public static String COMMON = BASE_URL + "sdk/common.ashx";
    public static String MESSAGE = BASE_URL + "sdk/message.ashx";

    /**
     * 我的地锁
     */
    public static String GROUNDLOCK = "http://120.27.27.144:8100/sdk/park_open.ashx";
    /**
     * 微信用户登录
     */
    public static String URL_WX_USER_LOGIN = "http://120.27.27.144:8080/wechat/user/insertUserByUnionId";

    /**
     * 固定页面
     * <p>
     * 固定页面 ---- 帮助中心
     */
    public static String URL_SUPPORT_CENTER = "http://120.27.27.144:8100/resource/websites/6/questionhelp.html";
    /**
     * 固定页面 ---- 服务条款
     */
    public static String URL_TERMS_SERVICE = "http://120.27.27.144:8100/resource/websites/6/serviceitem.html";
    /**
     * 固定页面 ---- 版本说明
     */
    public static String URL_RELEASE_NOTES = "http://120.27.27.144:8100/resource/websites/6/versioninfo.html";
    /**
     * 获取热搜json文件
     */
    public static String URL_GET_HOT_SEARCH_JSON = "http://120.27.27.144:8100/resource/hotsearch.json";
    /**
     * 分期办理流程
     */
    public static String URL_STAGE_EXAMPLE = "http://120.27.27.144:8100/resource/websites/4/stageexample.html";

    /**
     * 微信相关urls
     * 微信用户绑定手机号和密码
     */
    public static String WE_CHAT_BIND_PHONE = "http://120.27.27.144:8080/wechat/user/wechatBindingphone";


    /**
     * 第三方 api
     * <p>
     * 微信相关urls
     * 获取微信access_token
     */
    public static String WX_GET_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";
    /**
     * 微信相关urls
     * 获取微信用户信息
     */
    public static String WX_GET_USER_INFO = "https://api.weixin.qq.com/sns/userinfo";
    /**
     * 微信相关urls
     * 检验授权凭证（access_token）是否有效
     */
    public static String WX_VERIFY_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/auth";


}
